package com.gxy.learn.backup.shiroauth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxy.learn.backup.shiroauth.entity.SysRole;
import com.gxy.learn.backup.shiroauth.vo.SysUserRoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: Gao xueyong
 * Create at: 2021/12/15 下午9:49
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根据账号获取角色信息
     * @param account
     * @return
     */
    List<SysUserRoleVO> getSysRolesByAccount(@Param("account") String account);
}
